<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
// This tests deletion of an empty line which is a <br> element just after a
// <div> element. If the deletion is successful, the result should have two
// lines, and the insertion point should be at the start of the second line,
// just before the letter "b".
selection_test(
    [
        '<div contenteditable>',
            '<div>a</div>^<br><div>|b</div>',
        '</div>',
    ],
    'Delete',
    [
        '<div contenteditable>',
            '<div>a</div><div>|b</div>',
        '</div>',
    ],
    'Delete an empty line; selecting <br> only');
</script>
